#ifndef MQTTSCENE_H
#define MQTTSCENE_H

#include <QObject>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPainter>
#include <QPaintEvent>
#include <QMouseEvent>
#include <QPainterPath>
#include <QPixmap>
#include <QDebug>

class MqttScene : public QGraphicsScene
{
    Q_OBJECT
public:
    explicit MqttScene(QWidget *parent = nullptr);
    ~MqttScene();
    bool setBackImg(QString imgFile);

protected:
    void drawBackground(QPainter *painter, const QRectF &rect);

private:
    QString mBackImg;

};

#endif // MQTTSCENE_H
